/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const financeRouter = {
  path: '/finance',
  component: Layout,
  hidden:false,
  redirect: 'noRedirect',
  name: '财务',
  meta: {
    title: '财务',
    icon: 'shopping'
  },
  children: [
    {
      path: 'workbrench',
      component: () => import('@/views/finance/workbrench/workbrench'),
      name: '总览',
      meta: { title: '总览' }
    },
    {
      path: 'dealings',
      component: () => import('@/views/finance/index'),
      name: '日常往来',
      meta: { title: '日常往来' },
      children:[
        {
          path: 'expenses',
          component: () => import('@/views/finance/dealings/expenses/expenses'),
          name: '支出',
          meta: { title: '支出' }
        },
        {
          path: 'expenses-add',
          hidden: true,
          component: () => import('@/views/finance/dealings/expenses/expenses-add'),
          name: '支出信息',
          meta: { title: '支出信息' }
        },
        {
          path: 'expenses-detail',
          hidden: true,
          component: () => import('@/views/finance/dealings/expenses/expenses-detail'),
          name: '支出信息',
          meta: { title: '支出信息' }
        },
        {
          path: 'transfer',
          component: () => import('@/views/finance/dealings/transfer/transfer'),
          name: '转账',
          meta: { title: '转账' }
        },
        {
          path: 'transfer-add',
          hidden: true,
          component: () => import('@/views/finance/dealings/transfer/transfer-add'),
          name: '转账信息',
          meta: { title: '转账信息' }
        },
        {
          path: 'transfer-detail',
          hidden: true,
          component: () => import('@/views/finance/dealings/transfer/transfer-detail'),
          name: '转账信息',
          meta: { title: '转账信息' }
        },
        {
          path: 'revenue',
          component: () => import('@/views/finance/dealings/revenue/revenue'),
          name: '收入',
          meta: { title: '收入' }
        },
        {
          path: 'revenue-add',
          hidden: true,
          component: () => import('@/views/finance/dealings/revenue/revenue-add'),
          name: '转账信息',
          meta: { title: '转账信息' }
        },
        {
          path: 'revenue-detail',
          hidden: true,
          component: () => import('@/views/finance/dealings/revenue/revenue-detail'),
          name: '收入信息',
          meta: { title: '收入信息' }
        },

      ]
    },
    {
      path: 'bankroll',
      component: () => import('@/views/finance/index'),
      name: '资金',
      meta: { title: '资金' },
      children:[
        {
          path: 'deposit',
          component: () => import('@/views/finance/bankroll/deposit/deposit'),
          name: '存款',
          meta: { title: '存款' }
        },
        {
          path: 'expenses-add',
          hidden: true,
          component: () => import('@/views/finance/bankroll/deposit/deposit-add'),
          name: '存款信息',
          meta: { title: '存款信息' }
        },
        {
          path: 'expenses-detail',
          hidden: true,
          component: () => import('@/views/finance/bankroll/deposit/deposit-detail'),
          name: '支出信息',
          meta: { title: '支出信息' }
        },
        {
          path: 'withdraw',
          component: () => import('@/views/finance/bankroll/withdraw/withdraw'),
          name: '取款',
          meta: { title: '取款' }
        },
        {
          path: 'withdraw-add',
          hidden: true,
          component: () => import('@/views/finance/bankroll/withdraw/withdraw-add'),
          name: '取款信息',
          meta: { title: '取款信息' }
        },
        {
          path: 'withdraw-detail',
          hidden: true,
          component: () => import('@/views/finance/bankroll/withdraw/withdraw-detail'),
          name: '转账信息',
          meta: { title: '转账信息' }
        },
        {
          path: 'turnover',
          component: () => import('@/views/finance/bankroll/turnover/turnover'),
          name: '流水',
          meta: { title: '流水' }
        },
        {
          path: 'turnover-detail',
          hidden: true,
          component: () => import('@/views/finance/bankroll/turnover/turnover-detail'),
          name: '流水信息',
          meta: { title: '流水信息' }
        },

      ]
    },
    {
      path: 'config',
      component: () => import('@/views/finance/index'),
      name: '配置',
      meta: { title: '配置' },
      children:[
        {
          path: 'account',
          component: () => import('@/views/finance/account/account'),
          name: '账户',
          meta: { title: '账户' }
        },
        {
          path: 'account-add',
          component: () => import('@/views/finance/account/account-add'),
          hidden: true,
          name: '账户',
          meta: { title: '账户' }
        },
        {
          path: 'account-detail',
          hidden: true,
          component: () => import('@/views/finance/account/account-detail'),
          name: '账户信息',
          meta: { title: '账户信息' }
        },
        {
          path: 'bank',
          component: () => import('@/views/finance/bank/bank'),
          name: '银行',
          meta: { title: '银行' }
        },
        {
          path: 'bank-add',
          component: () => import('@/views/finance/bank/bank-add'),
          hidden: true,
          name: '银行',
          meta: { title: '银行' }
        },
        {
          path: 'bank-detail',
          hidden: true,
          component: () => import('@/views/finance/bank/bank-detail'),
          name: '银行信息',
          meta: { title: '银行信息' }
        },
        {
          path: 'bankcard',
          component: () => import('@/views/finance/bankcard/bankcard'),
          name: '银行卡',
          meta: { title: '银行卡' }
        },
        {
          path: 'bankcard-add',
          component: () => import('@/views/finance/bankcard/bankcard-add'),
          hidden: true,
          name: '银行卡',
          meta: { title: '银行卡' }
        },
        {
          path: 'bankcard-detail',
          hidden: true,
          component: () => import('@/views/finance/bankcard/bankcard-detail'),
          name: '银行卡信息',
          meta: { title: '银行卡信息' }
        },
        {
          path: 'currency',
          component: () => import('@/views/finance/currency/currency'),
          name: '货币',
          meta: { title: '货币' }
        },
        {
          path: 'currency-add',
          component: () => import('@/views/finance/currency/currency-add'),
          hidden: true,
          name: '货币',
          meta: { title: '货币' }
        },
        {
          path: 'currency-detail',
          hidden: true,
          component: () => import('@/views/finance/currency/currency-detail'),
          name: '货币信息',
          meta: { title: '货币信息' }
        },
        {
          path: 'subject',
          component: () => import('@/views/finance/subject/subject'),
          name: '科目',
          meta: { title: '科目' }
        },
        {
          path: 'subject-add',
          component: () => import('@/views/finance/subject/subject-add'),
          hidden: true,
          name: '科目',
          meta: { title: '科目' }
        },
        {
          path: 'subject-detail',
          hidden: true,
          component: () => import('@/views/finance/subject/subject-detail'),
          name: '科目信息',
          meta: { title: '科目信息' }
        }

      ]
    },
  ]
}

export default financeRouter
